package cn.sofwin.day0202.homework;

import java.util.Set;
import java.util.TreeSet;

public class Test01 {
    public static void main(String[] args) {
        Set<Employee> set = new TreeSet<>();
        Employee a = new Employee("zs", 22, new MyDate(1998, 7, 12));
        Employee b = new Employee("ls", 23, new MyDate(1997, 3, 4));
        Employee c = new Employee("ww", 25, new MyDate(1995, 7, 2));
        Employee d = new Employee("mz", 32, new MyDate(1988, 6, 21));
        Employee e = new Employee("xq", 12, new MyDate(2008, 8, 30));
        set.add(a);
        set.add(b);
        set.add(c);
        set.add(d);
        set.add(e);

        set.forEach( employee -> System.out.println(employee) );
    }
}
